<!DOCTYPE html>
<html>
<head>
<base href="${basePath}">
<meta charset="UTF-8">
<head>
<title>任务详情</title> $!{include("import_js_css.html")}
</head>
<body>
	<!-- #set(Task task,List<User> responsibles) -->
	$!{include("header.html")}
	<div class="menu_all">
		<div class="div_search_result clear">
			<div class="panel-heading panel-result-title">
				<h3 class="panel-title">任务详情</h3>
			</div>
			<div class="panel-form-add">
				<div class="panel-form-layout">
					<br> <label for="txtTaskName" class="col-sm-1 control-label">任务名称</label>
					<div class="col-sm-3">
						<input type="text" class="form-control panel-text-bg" id="txtTaskName" value="${task.name}" readOnly >
					</div>
					<label for="selStatus" class="col-sm-1 control-label" style="margin-left:100px;">工作安排</label>
					<!--#for(Status s: taskTypes)-->
					<!-- #if(s.id==task.subStatusId) -->
					<div class="col-sm-3">
						<input type='text' readOnly class="form-control panel-text-bg" value="${s.name}" readOnly />
					</div>
					<!-- #else -->
					&nbsp;
					<!-- #end -->
					<!-- #end -->
					<br> <br> <label for="txtExpirydate" class="col-sm-1 panel-text-bg control-label">到期时间</label>
					<div class="col-sm-3">
						<input name="expirydate" type='text' readOnly class="form-control panel-text-bg" value="${task.expirydate.format('yyyy-MM-dd')}" />
					</div>
					<label for="selPerson" class="col-sm-1 control-label" style="margin-left:100px;">负责人</label>
					<!--#for(GroupUserModel u:responsibles)-->
					<!-- #if(u.id==task.resporId) -->
					<div class="col-sm-3">
						<input type='text' class="form-control panel-text-bg" readOnly value="${u.name}" readOnly />
					</div>
					<!-- #else -->
					&nbsp;
					<!-- #end -->
					<!-- #end -->
					<br />
					<br />
					<label for="selTaskType" class="col-sm-1 control-label">任务类型</label>
					<div class="col-sm-3">
							<input class="form-control panel-text-bg" readOnly value="${task.type=='1'?'会员':'组'}"/>
					</div>
					<div id="ta_mbr_div">
						<label for="selTaskMember" class="col-sm-1 control-label" style="margin-left:100px;">会员</label>
						<div class="col-sm-3">
								<input class="form-control panel-text-bg" readOnly value="${task.member.name}"/>
						</div>
					</div>
					<div id="ta_gps_div" style="display: none;">
						<label for="selTaskGroups" class="col-sm-1 control-label">组</label>
						<div class="col-sm-3">
							<input class="form-control panel-text-bg" readOnly value="${task.group.name}"/>
						</div>
					</div>
					<br /> <br /> <label for="txtRemarks" class="col-sm-1 control-label">任务备注</label>
					<div class="col-sm-3">
						<textarea style="height:115px;" class="form-control panel-form-addreed panel-text-bg" name="remarks" id="txtRemarks" readOnly>${task.remarks}</textarea>
					</div>
					<br> <br> <br> <br><br><br>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
	$(function() {
		var taskType = '${task.type}';
		if (taskType == '1') {
			$("#ta_mbr_div").show();
			$("#ta_gps_div").hide();
		} else {
			$("#ta_gps_div").show();
			$("#ta_mbr_div").hide();
		}

		$("#txtExpirydate").datetimepicker({
			language : "zh-CN",
			pickTime : false
		});

		var msg = '${msg}';
		if (msg && msg.length >= 6) {
			alert(msg);
			return;
		}
	});
</script>
</html>
